package com.dongdong.job;

import com.dongdong.service.SeckillGoodsService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SeckliiProductJob {
    @Autowired
    private SeckillGoodsService seckillGoodsService;
    @XxlJob("SeckliiProductJobHandler")   //任务管理
    public void  SeckliiProductJobHandler(){
        System.err.println("任务执行成功");
     //把需要预热的商品查询出来
        seckillGoodsService.getRedisHot();
    }
}